/*
 * 创建日期 2006-5-30
 */
package com.jmcgg.freesky.common.util;

/**
 * Title: FreeSky Common Java Library <br>
 * Description: FreeSky Common Java Library <br>
 * Copyright: Copyright (c) 2005~2009 www.afss.cn <br>
 * Company: Amei's FreeSky Studio <br>
 * 
 * @author <b>Jacky Chou</b> (AFSS [Amei's FreeSky Studio])
 * @version 1.2.0, 2008-02-23, Upgrade freesky.jar to 1.2.0 with Struts 2 <br>
 *          1.0.0, 2006-05-30, Initial Version
 */
public class LoginUser {
	private String userId = "";
	private String password = "";
	private String userName = "";
	private String site = "";
	private String role = "";

	public LoginUser() {
	}

	public LoginUser(String userId, String password, String site,
			String userName, String role) {
		this.userId = userId;
		this.password = password;
		this.site = site;
		this.userName = userName;
		this.role = role;
	}

	public LoginUser(String userId, String password, String site,
			String userName) {
		this.userId = userId;
		this.password = password;
		this.site = site;
		this.userName = userName;
	}

	public void invalidate() {
		this.userId = null;
		this.password = null;
		this.userName = null;
		this.site = null;
		this.role = null;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getSite() {
		return site;
	}

	public void setSite(String site) {
		this.site = site;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

}
